//
//  Common.h
//  EUCIOS
//
//  Created by Khang on 3/29/13.
//  Copyright (c) 2013 Khang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Common : NSObject

+ (id)sharedCommon;

- (NSInteger)objectToInterger:(id)object;
- (long long)objectToLong:(id)object;
- (NSTimeInterval)objectToTimeInterval:(id)object;
- (NSString*)objectToString:(id)object;
- (NSString*)nullObjectToEmtpyString:(id)object;
- (NSString*)nullObjectToSpaceString:(id)object;
- (CGFloat)objectToFloat:(id)object;
- (BOOL)validateUrl:(NSString*)candidate;

- (void)showMessageBox:(NSString*)title withMessage:(NSString*)message withCancelButton:(NSString*)cancel;

- (void)showProgress:(NSString*)title withDescription:(NSString*)description inView:(UIView*)theview;
- (void)hideProgress;
- (void)hideProgressWithDelay:(NSTimeInterval)delay;

- (void)saveAppInfo:(NSMutableDictionary*)info;
- (NSMutableDictionary*)getAppInfo;

@end
